home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Games / Team17-HDinst / Superfrog / Install-Superfrog next >
Text File  |  1997-08-27  |  2KB  |  98 lines

  1.  
  2. ;----------------------------
  3.  
  4. (if (exists "Games:" (noreq) )
  5.     (set @default-dest "Games:")
  6.     (if (exists "SYS:Games" (noreq) )
  7.         (set @default-dest "SYS:Games")
  8.         (if (exists "Work:Games" (noreq) )
  9.             (set @default-dest "Work:Games")
  10.             (if (exists "JEUX:" (noreq) )
  11.                (set @default-dest "JEUX:")
  12.                (set @default-dest "SYS:")
  13.             )
  14.         )
  15.     )
  16. )
  17.  
  18. (message "\n\n\nThis loader needs the JST program (NOT INCLUDED)\n to be copied in your path\n\n(if you don't have it already)\n\nJST is available from aminet (game/patch) or on my site")
  19.  
  20. (set @default-dest
  21. (askdir
  22.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  23.     (help @askdir-help)
  24.     (default @default-dest)
  25.     (disk)
  26. )
  27. )
  28.  
  29. (set #dest (tackon @default-dest @app-name))
  30.  
  31. (set #CI_unit
  32.     (askchoice
  33.         (prompt "From which disk unit do you want\nto install the game")
  34.         (help    @askoptions-help)
  35.         (choices
  36.            "DF0:"
  37.            "DF1:"
  38.            "DF2:"
  39.            "DF3:"
  40.         )
  41.     )
  42. )
  43.  
  44. (set #CI_drive ("DF%ld:" #CI_unit))
  45.  
  46. (makedir #dest
  47.     (help @makedir-help)
  48.     (infos)
  49. )
  50.  
  51. ;----------------------------
  52.  
  53. (copyfiles
  54.     (help @copyfiles-help)
  55.     (source "SuperfrogHD")
  56.     (dest #dest)
  57.     (infos)
  58. )
  59.  
  60. (copyfiles
  61.     (help @copyfiles-help)
  62.     (source "IntroHD")
  63.     (dest #dest)
  64.     (infos)
  65. )
  66. (copyfiles
  67.     (help @copyfiles-help)
  68.     (source "sfroghd.readme")
  69.     (dest #dest)
  70.     (infos)
  71. )
  72.  
  73.  
  74. (message ("\nInsert %s disk 1 into drive %s !" @app-name #CI_drive))
  75.     (if
  76.         (= 0 (run ("rob2file %ld \"%s/sfrog.d1\" 2 159 12389A OFFSET >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  77.         ("")
  78.         (abort "\"rob2file\" must be in your PATH !")
  79.     )
  80.  
  81. (message ("\nInsert %s disk 2 into drive %s !" @app-name #CI_drive))
  82.     (if
  83.         (= 0 (run ("rob2file %ld \"%s/sfrog.d2\" 0 159 12389A >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  84.         ("")
  85.         (abort "\"rob2file\" must be in your PATH !")
  86.     )
  87.  
  88. (message ("\nInsert %s disk 3 into drive %s !" @app-name #CI_drive))
  89.     (if
  90.         (= 0 (run ("rob2file %ld \"%s/sfrog.d3\" 2 159 12389A OFFSET >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  91.         ("")
  92.         (abort "\"rob2file\" must be in your PATH !")
  93.     )
  94.  
  95.  
  96. (exit)
  97.  
  98.